package View;

import Controller.ActionManager;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JButton;
import javax.swing.JEditorPane;
import javax.swing.JPanel;

/**
 *
 * @author pieterc
 */
public class PostPanel extends JPanel{

    private JEditorPane ta;
    private JButton btn;

    public PostPanel() {
        
        ta = new JEditorPane("text/html","<b>status update...</b>");
        //ta.setLineWrap(true);
        
        btn = new JButton(ActionManager.getPostAction());

        BorderLayout bl = new BorderLayout();
        this.setLayout(bl);

        this.add(ta, BorderLayout.CENTER);
        this.add(btn, BorderLayout.EAST);
        this.setPreferredSize(new Dimension(200,100));
    }

}
